<?
	require_once('../inc/paymentmethods.php');
	$results = GetPaymentMethods();
	
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>Database Access</title>
		<meta name="description" content="" />
        <link type="text/css" rel="stylesheet" href="../inc/bootstrap.css">
		<style type="text/css">
		
		</style>
	</head>

	<body>
		<? include('../inc/header.php'); ?>
        
        <div class="container">
        	<? include('../inc/nav.php'); ?>
            <div id="contents">
                <table class="table table-striped table-bordered table-condensed">
                    <tr>
                        <th>Id</th><th>Description</th><th>Actions</th>
                    </tr>
                    <? while($rs = $results->fetch_assoc()): ?>
                        <tr>
                                  <td><?=$rs['id']?></td> 
                                  <td><?=$rs['Desciption'] ?></td>
                                  <td>
                                      <a href="edit.php?id=<?=$rs['id']?>">Edit</a>
                                      <a href="delete.php?id=<?=$rs['id']?>">Delete</a>
                                      <a href="details.php?id=<?=$rs['id']?>">Details</a>
                                  </td>
                        </tr>
                    <? endwhile; ?>
                 </table>
             </div>
         </div>
         
	</body>
</html>
